package rullekake.facade;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import rullekake.entities.Groups;

/**
 * Utvider AbstractFacade for Groups.
 * Tar seg av peristence for Groups-objekter
 *
 */
@Stateless
public class GroupsFacade extends AbstractFacade<Groups> {
    @PersistenceContext(unitName = "SystemeringPU")
    private EntityManager em;

    protected EntityManager getEntityManager() {
        return em;
    }

    public GroupsFacade() {
        super(Groups.class);
    }

}
